php get set

64

<?php
class User {
    protected $email;
    protected $password;
    
    public function getEmail() {
        return $this->email;
    }
    
    public function setEmail($email) {
        $this->email = $email;
    }
    
    public function getPassword() {
        return $this->password;
    }
    
    public function setPassword($password) {
        $this->password = $password;
    }
?>

Comments

Submit
0 Comments